﻿@namespace Masa.Tsc.Web.Admin.Rcl.Components
@inherits TscEChartBase

<MCard Width="Width" Height="Height" Class="d-flex flex-column rounded-lg">
    <MCardTitle Class="d-flex justify-space-between">
        <MLabel Class="emphasis2--text h6">@Title</MLabel>
        <MLabel Class="emphasis2--text h6" style="color: #FF5252 !important;">@Total</MLabel>
    </MCardTitle>
    <MCardText Class="flex-grow-1">
        @if (_isLoading)
        {
            <LoadingData />
        }
        else if (_data?.Any(item => item?.Result?.Any() is true) is false)
        {
            <NoData />
        }
        else
        {
            <MECharts Option="_options.Option" Width="@("100%")" Height="@("100%")"></MECharts>
        }
    </MCardText>
    <MCardActions Class="regular3--text body2 px-4">
        @I18n.Team("During this period of time, the service applies the Adpx application service standard and the application service rating")
    </MCardActions>
</MCard>
